package com.hist;

import com.hist.pojo.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther Ren Gaoshuai
 * @date 2021-04-05 20:44
 **/
public class Mytest {
 
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

        Student student = (Student) context.getBean("student");

        System.out.println(student.toString());
    }
}
